#ifndef __OLED_H
#define __OLED_H

#include "oled_spi.h"

#define STR_SIZE 16
// dc PB0 dc 1写数据 0写命令

extern uint8_t si12_schema_flag;
extern uint8_t rfid_schema_flag;
extern uint8_t as608_schema_flag;
//RES PB1 
void oled_write_res(uint8_t BitValue);

void oled_init(void);
void oled_writecmd(uint8_t command);
void oled_wirtedata(uint8_t data);
void oled_write_dc(uint8_t BitValue);
void OLED_Clear(void);
void OLED_ShowChar(uint8_t x, uint8_t y, char Char);
void OLED_ShowString(uint8_t Line, uint8_t Column, char *String);
void OLED_CloseRoll(void);
void OLED_OpenRoll(void);
void OLED_DrawPoint(uint8_t x,uint8_t y);
void OLED_ClearPoint(uint8_t x,uint8_t y);
void OLED_Refresh(void);

void oled_si12_mode(uint8_t mode);
void oled_rfid_mode(uint8_t mode);
void oled_as608_mode(uint8_t mode);
void oled_updata_key(void);
#endif // !__OLED_H
